package com.zzt.zt_hilt.Module

import com.zzt.zt_hilt.factory.AnalyticsServiceImpl
import com.zzt.zt_hilt.inter.AnalyticsService
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import javax.inject.Qualifier

/**
 * @author: zeting
 * @date: 2022/8/30
 */
@Module
@InstallIn(ActivityComponent::class)
abstract class AnalyticsModule {

    @Binds
    abstract fun bindAnalyticsService(analyticsServiceImpl: AnalyticsServiceImpl): AnalyticsService


//    @BindBB
//    @Provides
//    fun provideAnalyticsService(
//        // Potential dependencies of this type
//    ): AnalyticsService {
//        return Retrofit.Builder()
//            .baseUrl("https://example.com")
//            .build()
//            .create(AnalyticsService::class.java)
//    }

}